package cn.xuexiyuan.kpi.entity;

import lombok.Data;

/**
 * @Description:
 * @Author 左龙龙
 * @Date 20-12-3
 * @Version 1.0
 **/
@Data
public class PageParam<T> {
    private int page_no;
    private int page_size;
    private T search;

    public int getOffset() {
        return (page_no - 1) * page_size;
    }

    public int getLimit() {
        return page_size;
    }
}
